#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QLabel* label = new QLabel(this);
    QRect windowRect = Widget::geometry();
    label->setGeometry(0,0,windowRect.width(),windowRect.height());
    QPixmap pixmap(":/image.png");
    label->setPixmap(pixmap);
    label->setScaledContents(true);

}

Widget::~Widget()
{
    delete ui;
}

